In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.
{
GtkLabelAccessibleLinkImpl *impl = (GtkLabelAccessibleLinkImpl *)atk_impl;
- return g_object_ref (impl->link);
+ return ATK_HYPERLINK (g_object_ref (impl->link));
}
static void
if (cell == NULL)
cell = create_cell (tree_view, accessible, tree, node, tv_col);
- return g_object_ref (cell);
+ return ATK_OBJECT (g_object_ref (cell));
}
static AtkStateSet*
if (cell == NULL)
cell = create_cell (tree_view, GTK_TREE_VIEW_ACCESSIBLE (component), tree, node, column);
- return g_object_ref (cell);
+ return ATK_OBJECT (g_object_ref (cell));
}
static void